import { request } from '@umijs/max';

export async function login(params: any): Promise<any> {
  return request('/api/admin/login', { method: 'post', data: params }); //get请求参数为params，post为data
}

export default {
  login,
};
